<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>事件处理</title>
</head>
<body>
    <button onclick="click_event()">按钮</button>
    <br>
    <label for="ff">内容：</label>
    <input type="text" id="ff" onfocus="focus_event()" onblur="blus_ecent()">
    <script>
        function click_event(){
        alert('点击事件触发了')
    }
        function focus_event() {
            console.log('聚焦事件触发了');
        }
        function blus_ecent() {
            console.log('失焦事件触发了');
            
            
        }
    </script>
</body>
</html>